#include <sys/cdefs.h>

#include <sys/types.h>
#include <sys/bitops.h>

#if !defined(_KERNEL) && !defined(_STANDALONE)
#include <string.h>
#else
#include <lib/libkern/libkern.h>
#endif

/* #undef ffs() - might be defined as macro to __builtin_ffs() */
#undef ffs

/*
 * ffs -- vax ffs instruction
 */
__weak_alias(__ffssi2,ffs)
int
ffs(int mask)
{
	return ffs32((uint32_t)mask);
}
